{{#if this.currentUser.staff}}
  {{#if this.valid_zendesk_credential}}
    {{#if this.zendesk_id}}
      <a
        href={{this.zendesk_url}}
        target="_blank"
        class="btn-primary btn"
        rel="noopener noreferrer"
      >
        <i class="fa fa-clone"></i>
        {{i18n "topic.view_zendesk_issue"}}
      </a>
    {{else}}
      <DButton
        class="btn-primary"
        @action={{action "createZendeskIssue"}}
        @label="topic.create_zendesk_issue"
        @disabled={{this.dirty}}
      />
    {{/if}}
  {{else}}
    <p>{{i18n "zendesk.credentials_not_setup"}}</p>
  {{/if}}
{{/if}}